<template>
    <div class="welcome">
          <el-table
    :data="logs"
    border
    style="width: 100%"
    >
    <el-table-column
      prop="username"
      label="登入账户"
      width="180"
      align="center">
    </el-table-column>
    <el-table-column
      prop="lastLogin.ip"
      label="上次登录ip"
      width="180"
      align="center">
    </el-table-column>
    <el-table-column
      prop="lastLogin.loginTime"
      label="上次登入时间"
      align="center">
    </el-table-column>
    <el-table-column
      prop="nowLogin.ip"
      label="本次登入ip"
      align="center">
    </el-table-column>
    <el-table-column
      prop="nowLogin.loginTime"
      label="本次登入时间"
      align="center">
    </el-table-column>
  </el-table>
    </div>
</template>
<script>
import * as api from "../../../api/index"
export default{
    created(){
        api.getLoginApi()
        .then(res =>{
            this.logs = res.data.data;
        })
    },
    data(){
        return{
            logs:[]
        }
    }
}
</script>
<style scoped lang="less">

</style>